package erlwitch.parser.structure;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import erlwitch.parser.structure.references.RecordReference;

public class FunctionClause extends Item {

	public FunctionClause(int charFrom, int charTo) {
		super(charFrom, charTo);
	}

	//Se usara?
	//TODO: creo que no! :P
	private Function function;
	
	private Map<String, List<Item>> atoms = new HashMap<String, List<Item>>();
	private Map<String, List<Item>> variables = new HashMap<String, List<Item>>();
	private Map<String, List<Item>> modules = new HashMap<String, List<Item>>();
	
	//La idea es que inicialmente aqui hallan solo DummyFunctionReferences (para llamadas a otros modulos)
	//y que luego se post-procese y se pongan las referencias posta
	private Map<Invocation, List<Item>> funInvocations = new HashMap<Invocation, List<Item>>();
	private Map<RecordReference, List<Item>> recordUsage = new HashMap<RecordReference, List<Item>>();
	
	
	
	public void setFunction(Function function) {
		this.function = function;
	}
	
}
